Optimal. Leaf size=181 \[ \frac {2 b B d-5 A b e+3 a B e}{3 b (b d-a e)^2 (d+e x)^{3/2}}-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {2 b B d-5 A b e+3 a B e}{(b d-a e)^3 \sqrt {d+e x}}-\frac {\sqrt {b} (2 b B d-5 A b e+3 a B e) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{(b d-a e)^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 181, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {27, 79, 53, 65,
214} \begin {gather*} -\frac {A b-a B}{b (a+b x) (d+e x)^{3/2} (b d-a e)}+\frac {3 a B e-5 A b e+2 b B d}{\sqrt {d+e x} (b d-a e)^3}+\frac {3 a B e-5 A b e+2 b B d}{3 b (d+e x)^{3/2} (b d-a e)^2}-\frac {\sqrt {b} (3 a B e-5 A b e+2 b B d) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{(b d-a e)^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 53
Rule 65
Rule 79
Rule 214
Rubi steps
\begin {align*} \int \frac {A+B x}{(d+e x)^{5/2} \left (a^2+2 a b x+b^2 x^2\right )} \, dx &=\int \frac {A+B x}{(a+b x)^2 (d+e x)^{5/2}} \, dx\\ &=-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {(2 b B d-5 A b e+3 a B e) \int \frac {1}{(a+b x) (d+e x)^{5/2}} \, dx}{2 b (b d-a e)}\\ &=\frac {2 b B d-5 A b e+3 a B e}{3 b (b d-a e)^2 (d+e x)^{3/2}}-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {(2 b B d-5 A b e+3 a B e) \int \frac {1}{(a+b x) (d+e x)^{3/2}} \, dx}{2 (b d-a e)^2}\\ &=\frac {2 b B d-5 A b e+3 a B e}{3 b (b d-a e)^2 (d+e x)^{3/2}}-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {2 b B d-5 A b e+3 a B e}{(b d-a e)^3 \sqrt {d+e x}}+\frac {(b (2 b B d-5 A b e+3 a B e)) \int \frac {1}{(a+b x) \sqrt {d+e x}} \, dx}{2 (b d-a e)^3}\\ &=\frac {2 b B d-5 A b e+3 a B e}{3 b (b d-a e)^2 (d+e x)^{3/2}}-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {2 b B d-5 A b e+3 a B e}{(b d-a e)^3 \sqrt {d+e x}}+\frac {(b (2 b B d-5 A b e+3 a B e)) \text {Subst}\left (\int \frac {1}{a-\frac {b d}{e}+\frac {b x^2}{e}} \, dx,x,\sqrt {d+e x}\right )}{e (b d-a e)^3}\\ &=\frac {2 b B d-5 A b e+3 a B e}{3 b (b d-a e)^2 (d+e x)^{3/2}}-\frac {A b-a B}{b (b d-a e) (a+b x) (d+e x)^{3/2}}+\frac {2 b B d-5 A b e+3 a B e}{(b d-a e)^3 \sqrt {d+e x}}-\frac {\sqrt {b} (2 b B d-5 A b e+3 a B e) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {b d-a e}}\right )}{(b d-a e)^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.65, size = 197, normalized size = 1.09 \begin {gather*} \frac {B \left (2 a^2 e (2 d+3 e x)+2 b^2 d x (4 d+3 e x)+a b \left (11 d^2+16 d e x+9 e^2 x^2\right )\right )-A \left (-2 a^2 e^2+2 a b e (7 d+5 e x)+b^2 \left (3 d^2+20 d e x+15 e^2 x^2\right )\right )}{3 (b d-a e)^3 (a+b x) (d+e x)^{3/2}}-\frac {\sqrt {b} (2 b B d-5 A b e+3 a B e) \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {-b d+a e}}\right )}{(-b d+a e)^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.94, size = 164, normalized size = 0.91
method | result | size |
derivativedivides | \(\frac {2 b \left (\frac {\left (\frac {1}{2} A b e -\frac {1}{2} B a e \right ) \sqrt {e x +d}}{\left (e x +d \right ) b +a e -b d}+\frac {\left (5 A b e -3 B a e -2 B b d \right ) \arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {b \left (a e -b d \right )}}\right )}{2 \sqrt {b \left (a e -b d \right )}}\right )}{\left (a e -b d \right )^{3}}-\frac {2 \left (A e -B d \right )}{3 \left (a e -b d \right )^{2} \left (e x +d \right )^{\frac {3}{2}}}-\frac {2 \left (-2 A b e +B a e +B b d \right )}{\left (a e -b d \right )^{3} \sqrt {e x +d}}\) | \(164\) |
default | \(\frac {2 b \left (\frac {\left (\frac {1}{2} A b e -\frac {1}{2} B a e \right ) \sqrt {e x +d}}{\left (e x +d \right ) b +a e -b d}+\frac {\left (5 A b e -3 B a e -2 B b d \right ) \arctan \left (\frac {b \sqrt {e x +d}}{\sqrt {b \left (a e -b d \right )}}\right )}{2 \sqrt {b \left (a e -b d \right )}}\right )}{\left (a e -b d \right )^{3}}-\frac {2 \left (A e -B d \right )}{3 \left (a e -b d \right )^{2} \left (e x +d \right )^{\frac {3}{2}}}-\frac {2 \left (-2 A b e +B a e +B b d \right )}{\left (a e -b d \right )^{3} \sqrt {e x +d}}\) | \(164\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 544 vs.
\(2 (177) = 354\).
time = 3.44, size = 1099, normalized size = 6.07 \begin {gather*} \left [\frac {3 \, {\left (2 \, B b^{2} d^{3} x + 2 \, B a b d^{3} + {\left ({\left (3 \, B a b - 5 \, A b^{2}\right )} x^{3} + {\left (3 \, B a^{2} - 5 \, A a b\right )} x^{2}\right )} e^{3} + 2 \, {\left (B b^{2} d x^{3} + {\left (4 \, B a b - 5 \, A b^{2}\right )} d x^{2} + {\left (3 \, B a^{2} - 5 \, A a b\right )} d x\right )} e^{2} + {\left (4 \, B b^{2} d^{2} x^{2} + {\left (7 \, B a b - 5 \, A b^{2}\right )} d^{2} x + {\left (3 \, B a^{2} - 5 \, A a b\right )} d^{2}\right )} e\right )} \sqrt {\frac {b}{b d - a e}} \log \left (\frac {2 \, b d - 2 \, {\left (b d - a e\right )} \sqrt {x e + d} \sqrt {\frac {b}{b d - a e}} + {\left (b x - a\right )} e}{b x + a}\right ) + 2 \, {\left (8 \, B b^{2} d^{2} x + {\left (11 \, B a b - 3 \, A b^{2}\right )} d^{2} + {\left (2 \, A a^{2} + 3 \, {\left (3 \, B a b - 5 \, A b^{2}\right )} x^{2} + 2 \, {\left (3 \, B a^{2} - 5 \, A a b\right )} x\right )} e^{2} + 2 \, {\left (3 \, B b^{2} d x^{2} + 2 \, {\left (4 \, B a b - 5 \, A b^{2}\right )} d x + {\left (2 \, B a^{2} - 7 \, A a b\right )} d\right )} e\right )} \sqrt {x e + d}}{6 \, {\left (b^{4} d^{5} x + a b^{3} d^{5} - {\left (a^{3} b x^{3} + a^{4} x^{2}\right )} e^{5} + {\left (3 \, a^{2} b^{2} d x^{3} + a^{3} b d x^{2} - 2 \, a^{4} d x\right )} e^{4} - {\left (3 \, a b^{3} d^{2} x^{3} - 3 \, a^{2} b^{2} d^{2} x^{2} - 5 \, a^{3} b d^{2} x + a^{4} d^{2}\right )} e^{3} + {\left (b^{4} d^{3} x^{3} - 5 \, a b^{3} d^{3} x^{2} - 3 \, a^{2} b^{2} d^{3} x + 3 \, a^{3} b d^{3}\right )} e^{2} + {\left (2 \, b^{4} d^{4} x^{2} - a b^{3} d^{4} x - 3 \, a^{2} b^{2} d^{4}\right )} e\right )}}, -\frac {3 \, {\left (2 \, B b^{2} d^{3} x + 2 \, B a b d^{3} + {\left ({\left (3 \, B a b - 5 \, A b^{2}\right )} x^{3} + {\left (3 \, B a^{2} - 5 \, A a b\right )} x^{2}\right )} e^{3} + 2 \, {\left (B b^{2} d x^{3} + {\left (4 \, B a b - 5 \, A b^{2}\right )} d x^{2} + {\left (3 \, B a^{2} - 5 \, A a b\right )} d x\right )} e^{2} + {\left (4 \, B b^{2} d^{2} x^{2} + {\left (7 \, B a b - 5 \, A b^{2}\right )} d^{2} x + {\left (3 \, B a^{2} - 5 \, A a b\right )} d^{2}\right )} e\right )} \sqrt {-\frac {b}{b d - a e}} \arctan \left (-\frac {{\left (b d - a e\right )} \sqrt {x e + d} \sqrt {-\frac {b}{b d - a e}}}{b x e + b d}\right ) - {\left (8 \, B b^{2} d^{2} x + {\left (11 \, B a b - 3 \, A b^{2}\right )} d^{2} + {\left (2 \, A a^{2} + 3 \, {\left (3 \, B a b - 5 \, A b^{2}\right )} x^{2} + 2 \, {\left (3 \, B a^{2} - 5 \, A a b\right )} x\right )} e^{2} + 2 \, {\left (3 \, B b^{2} d x^{2} + 2 \, {\left (4 \, B a b - 5 \, A b^{2}\right )} d x + {\left (2 \, B a^{2} - 7 \, A a b\right )} d\right )} e\right )} \sqrt {x e + d}}{3 \, {\left (b^{4} d^{5} x + a b^{3} d^{5} - {\left (a^{3} b x^{3} + a^{4} x^{2}\right )} e^{5} + {\left (3 \, a^{2} b^{2} d x^{3} + a^{3} b d x^{2} - 2 \, a^{4} d x\right )} e^{4} - {\left (3 \, a b^{3} d^{2} x^{3} - 3 \, a^{2} b^{2} d^{2} x^{2} - 5 \, a^{3} b d^{2} x + a^{4} d^{2}\right )} e^{3} + {\left (b^{4} d^{3} x^{3} - 5 \, a b^{3} d^{3} x^{2} - 3 \, a^{2} b^{2} d^{3} x + 3 \, a^{3} b d^{3}\right )} e^{2} + {\left (2 \, b^{4} d^{4} x^{2} - a b^{3} d^{4} x - 3 \, a^{2} b^{2} d^{4}\right )} e\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B x}{\left (a + b x\right )^{2} \left (d + e x\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.85, size = 297, normalized size = 1.64 \begin {gather*} \frac {{\left (2 \, B b^{2} d + 3 \, B a b e - 5 \, A b^{2} e\right )} \arctan \left (\frac {\sqrt {x e + d} b}{\sqrt {-b^{2} d + a b e}}\right )}{{\left (b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}\right )} \sqrt {-b^{2} d + a b e}} + \frac {\sqrt {x e + d} B a b e - \sqrt {x e + d} A b^{2} e}{{\left (b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}\right )} {\left ({\left (x e + d\right )} b - b d + a e\right )}} + \frac {2 \, {\left (3 \, {\left (x e + d\right )} B b d + B b d^{2} + 3 \, {\left (x e + d\right )} B a e - 6 \, {\left (x e + d\right )} A b e - B a d e - A b d e + A a e^{2}\right )}}{3 \, {\left (b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}\right )} {\left (x e + d\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.10, size = 210, normalized size = 1.16 \begin {gather*} -\frac {\frac {2\,\left (A\,e-B\,d\right )}{3\,\left (a\,e-b\,d\right )}+\frac {2\,\left (d+e\,x\right )\,\left (3\,B\,a\,e-5\,A\,b\,e+2\,B\,b\,d\right )}{3\,{\left (a\,e-b\,d\right )}^2}+\frac {b\,{\left (d+e\,x\right )}^2\,\left (3\,B\,a\,e-5\,A\,b\,e+2\,B\,b\,d\right )}{{\left (a\,e-b\,d\right )}^3}}{b\,{\left (d+e\,x\right )}^{5/2}+\left (a\,e-b\,d\right )\,{\left (d+e\,x\right )}^{3/2}}-\frac {\sqrt {b}\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {d+e\,x}\,\left (a^3\,e^3-3\,a^2\,b\,d\,e^2+3\,a\,b^2\,d^2\,e-b^3\,d^3\right )}{{\left (a\,e-b\,d\right )}^{7/2}}\right )\,\left (3\,B\,a\,e-5\,A\,b\,e+2\,B\,b\,d\right )}{{\left (a\,e-b\,d\right )}^{7/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________